package org.raphaello.core.jobs;

import android.util.Log;

public class ImageDrawer extends Job {

	
	private static final String TAG = "ImageDrawer";
	
	public ImageDrawer(String id) {
		super(id);
		declareProperty("x", "Number", "0");
		declareProperty("y", "Number", "0");
		declareProperty("width", "Number", "0");
		declareProperty("height", "Number", "0");
		declareProperty("path", "Path");
	}

	@Override
	public void work() {
		// Draw the image
		Log.i(TAG, "ImageDrawer drawing");
	}

	/* Helper methods for properties */
	
	public final Integer getX() {
		return (Integer)getProperty("x");
	}
	
	public final Integer getY() {
		return (Integer)getProperty("y");
	}
	
	public final Integer getWidth() {
		return (Integer)getProperty("width");
	}
	
	public final Integer getHeight() {
		return (Integer)getProperty("height");
	}
	
	public final Integer getOpacity() {
		return (Integer)getProperty("opacity");
	}
	
	public final String getPath() {
		return (String)getProperty("path");
	}

}
